function calculator(){
	var main = new pi.element("div").addStyle({
		"width": "200px",
		"border": "1px solid red",
		"padding": "5px"
	}).insert(pi.get("calculator"));
	main.child.add(new pi.element("h1").addStyle({
		"font": "bold 14px sans-serif",
		"textAlign": "center"
	}).update("Calculator"));
	var content = new pi.element("div").insert(main);
	var input = new pi.element("input").update("( 600+900-(1500/3) )%3").insertAfter(new pi.element("label").update("Input:").insert(main));
	new pi.element("button").event.addListener("click", function(){
		input.update(eval(input.element.value))
	}).update("Evaluate").insert(main)
};
pi.util.Init.push(calculator);
